<template>
  <div><pdf :src="fileurl" /></div>
</template>

<script>
import Pdf from 'vue-pdf';
export default {
  components: {
    Pdf
  },
  props: {
    file: {
      type: Object,
      required: true
    },
    preview: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    fileurl() {
      return this.file ? this.file.fileurl : '';
    }
  }
};
</script>

<style></style>
